#include "vector.h"
#include "list.hpp"


int main()
{
    Myvector::vector<int> ve;
    for (int i = 0; i <= 5; i++)
        ve.push_back(i);

    Myvector::vector<int>::reverse_iterator rit = ve.rbegin();
    while (rit != ve.rend())
    {
        std::cout << *rit << " ";
        rit++;
    }
    std::cout << std::endl;
     Myvector::vector<int>::const_reverse_iterator crit = ve.crbegin();
     while (crit != ve.crend())
     {
         std::cout << *crit << " ";
         crit++;
     }
     std::cout << std::endl;

     mylist::list<int> li;
     for (int i = 0; i <= 5; i++)
         li.push_back(i);

     mylist::list<int>::reverse_iterator rlit = li.rbegin();
     while (rlit != li.rend())
     {
         std::cout << *rlit << " ";
         rlit++;
     }
     std::cout << std::endl;
     mylist::list<int>::const_reverse_iterator crlit = li.crbegin();
     while (crlit != li.crend())
     {
         std::cout << *crlit << " ";
         crlit++;
     }
     std::cout << std::endl;
    return 0;
}